#include "setting.h"
#include "define.h"

Setting::Setting(QObject* parent)
    : QSettings(parent)
{
    setPath(QSettings::Format::IniFormat, QSettings::Scope::UserScope, SETTING_FILE_PATH);
}

Setting::~Setting()
{
}

QString Setting::getAppId()
{
    return value("APP_ID").toString();
}

void Setting::setAppId(const QString& appId)
{
    setValue("APP_ID", appId);
}

QString Setting::getSecretKey()
{
    return value("SECRET_KEY").toString();
}

void Setting::setSecretKey(const QString& secretKey)
{
    setValue("SECRET_KEY", secretKey);
}
